<template>
  <div>
    <a-button type="primary" @click="showModal">Open Modal</a-button>
    <a-modal v-model:open="open" title="Basic Modal" @ok="handleOk">
      <p>Some contents...</p>
      <p>Some contents...</p>
      <p>Some contents...</p>
    </a-modal>
  </div>
</template>
<script setup>
import { ref } from 'vue'
let open = ref(false)

let showModal = () => {
  open.value = true
}

let handleOk = e => {
  console.log(e)
  open.value = false
}
</script>
